
					<div class="footer ">
						<div class="footer-hd ">
							<p>
								<a href="# ">恒望科技</a>
								<b>|</b>
								<a href="# ">商城首页</a>
								<b>|</b>
								<a href="# ">支付宝</a>
								<b>|</b>
								<a href="# ">物流</a>
							</p>
						</div>
						<div class="footer-bd ">
							<p>
								<a href="# ">关于恒望</a>
								<a href="# ">合作伙伴</a>
								<a href="# ">联系我们</a>
								<a href="# ">网站地图</a>
								<em>© 2015-2025 Hengwang.com 版权所有</em>
							</p>
						</div>
					</div>
				</div>	
	<!---绑定手机窗口----->
		<!--div class="am-modal am-modal-no-btn" tabindex="-1" id="bind-mobile">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">
      <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
    </div>
    
    <div class="am-form-group">
      <label for="doc-ipt-email-1">手机号：</label>
      <input type="email" class="" id="mobile2" placeholder="请输入手机号">
    </div>

    <div class="am-form-group">
      <label for="doc-ipt-pwd-1">手机验证码:</label>
      <input type="text" class="" id="code2" placeholder="请输入手机验证码">
      <a class="am-btn am-btn-danger"  target="_blank">获取验证码</a>
    </div>

    <div class="am-modal-bd" style="width:400px;">
	<a class="am-btn am-btn-danger" onclick=bindMobile() >绑定手机</a>
    </div>
  </div-->

<script>
function getLocalTime(nS) {     
   return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");      
}	
function checkLogin(){
	$.get('/Api/Auth/check',null,function(ret){
	if(ret.staus == true && ret.count == '1'){
		$('#login-box').hide();
		$('#login-info-box').show();
		//$('#login-info-box').find('img').attr("src",ret.data.head_img);
		$('#login-info-box').find('#login-nickname').html(ret.data.user_nickname);
	}else if(ret.staus == false && ret.count == '3')
		{
			$('#bind-mobile').modal('open');
		}else{	
			$('#login-info-box').hide();
			$('#login-box').show();
		}
	
	
});	
}
checkLogin();
function loginout(){
	$.get('/Api/Auth/loginout',null,function(ret){
		if(ret.staus == true ){
			window.location.href=window.location.href;
			$('#login-info-box').hide();
			$('#logon-btn').show();	
		}
	});
}
function bindMobile(){
	var mobile =$('#mobile2').val();
	var code = $('#code2').val();
	$.get('/Api/Auth/bindMobile',{mobile2:mobile,code2:code},function(ret){
		if(ret.staus == true ){
			$('#bind-mobile').modal('close');
			window.location.href=window.location.href;
		}
	});	
}
function geturl(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}
</script>
